package com.agricultural.robot.controller;

import com.agricultural.robot.model.AgriculturalMachine;
import com.agricultural.robot.model.Task;

/**
 * 任务控制器
 */
public class TaskController {
    public void assignTask(AgriculturalMachine machine, Task task) {
        System.out.println("分配任务: " + task.getTaskDescription() + " 给 " + machine.getName());
        machine.performTask(task);
    }
}
